<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="库存预警查询" name="first" :lazy="true">
        <WarnBank />
      </el-tab-pane>
     <el-tab-pane label="库存整体统计" name="second" :lazy="true">
        <totalBank />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import WarnBank from './warnBank.vue'
import totalBank from './totalBank.vue'
export default {
  name: 'BankStat',
  components: {
    WarnBank,
    totalBank
  },
  data() {
    return {
      activeName: 'first'
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
};
</script>
<style>
/* .app-container {
  background-color: #e5e9f2;
} */
</style>
